<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<title>Untitled Document</title>
	</head>
	<body>
		<script src="bankaccount.js"></script>
		<script type="text/javascript">
			/*
			 * Invoke the validateAccNumber passing the bank number as a string. 
			 * The pattern of the returned object is as mentioned below
			 *  - isValid property : true is account number is valid. false if invalid
			 *  - errorString property : if isValid property is false, this property exists and gives 
			 *  reason why the account number is invalid. 
			 */
			alert(validateAccNumber("755490975").isValid);
			alert(validateAccNumber("0000000000").isValid);
			alert(validateAccNumber("75549097").isValid);
		</script>
	</body>
</html>
